<?php
namespace Admin\Model;

use Think\Model;
use Think\Page;

class  AdminModel extends Model{
       protected $_validate = array(
                array('username', 'require', '用户名必须', self::MUST_VALIDATE, 'regex', self::MODEL_BOTH),
                array('password', 'require', '初始密码必须', self::MUST_VALIDATE, 'regex', self::MODEL_BOTH),
                array('username', '', '用户名已经存在', self::MUST_VALIDATE, 'unique', self::MODEL_BOTH),
                array('email', 'email', '邮箱不合法', self::MUST_VALIDATE, 'regex', self::MODEL_BOTH),
    );
}